package org.apache.jsp.common;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class Top_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\n");
      out.write("<SCRIPT>\n");
      out.write("\tfunction totalSearch()\n");
      out.write("\t{\n");
      out.write("\t\tvar f = document.TotalSearchForm;\n");
      out.write("\n");
      out.write("\t\tif(trim(f.word.value)==\"\")\n");
      out.write("\t\t{\n");
      out.write("\t\t\twindow.alert(\"검색어를 입력하세요!\");\n");
      out.write("\t\t\tf.word.select();\n");
      out.write("\t\t\treturn false;\n");
      out.write("\t\t}\n");
      out.write("\t\t\n");
      out.write("\t\tif(f.search.value == \"price\") f.func.value = \"search_001\"; \n");
      out.write("\t\tif(f.search.value == \"product\") f.func.value = \"search_002\";\n");
      out.write("\t\tif(f.search.value == \"bbs\") f.func.value = \"search_003\";\n");
      out.write("\t\t\t\n");
      out.write("\t\n");
      out.write("\t\tf.submit(); \n");
      out.write("\t}\n");
      out.write("\n");
      out.write("\tfunction mypage()\n");
      out.write("{\n");
      out.write("\tvar f = document.topForm;\n");
      out.write("\tf.func.value=\"page_001\";\n");
      out.write("\tf.submit();\n");
      out.write("}\n");
      out.write("</SCRIPT>\n");
      out.write("\n");
      out.write("<BODY style=\"background-repeat:repeat-x;\" background='/images/Top/body_bg.gif' text=\"#636363\" topmargin='0' leftmargin='0'  >\r\n");
      out.write("<TABLE width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n");
      out.write("<FORM name=\"topForm\" action=\"/servlet/service.MyPageServlet\" method=\"post\">\n");
      out.write("\t\t\t<INPUT type=\"hidden\" name=\"func\" value=\"page_001\">\n");
      out.write("\t<TR>\n");
      out.write("\t\t<TD align=\"right\" rowspan=\"3\"  >\n");
      out.write("\t\t\t<IMG src=\"/images/Top/main_logo.gif\">\n");
      out.write("\t\t</TD>\n");
      out.write("\t</TR>\n");
      out.write("\n");
      out.write("\t<TR>\n");
      out.write("\t\t<TD colspan=5 align=\"right\" height=\"56\">\n");
      out.write("\t\t\t<TABLE>\n");
      out.write("\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t<IMG src=\"/images/Top/join.jpg\">\n");
      out.write("\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t<IMG src=\"/images/Top/login.jpg\">\n");
      out.write("\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t<TD> \n");
      out.write("\t\t\t\t\t\t\t<IMG src=\"/images/Top/mypage.jpg\" onclick=\"mypage()\" style=\"cursor:hand\" align=\"absmiddle\">\n");
      out.write("\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t<IMG src=\"/images/Top/cart.jpg\">\n");
      out.write("\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t<IMG src=\"/images/Top/ordercheck.jpg\" style=\"cursor:hand;\">\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t</TR>\n");
      out.write("\t\t\t</TABLE>\n");
      out.write("\t\t</TD>\n");
      out.write("\t</TR>\n");
      out.write("\n");
      out.write("\t<TR>\n");
      out.write("\t\t<TD height=\"53\">\n");
      out.write("\t\t\t<IMG src=\"/images/Top/resevation.gif\">\n");
      out.write("\t\t</TD>\n");
      out.write("\t\t<TD>\n");
      out.write("\t\t\t<IMG src=\"/images/Top/specialprice.gif\">\n");
      out.write("\t\t</TD>\n");
      out.write("\t\t<TD>\n");
      out.write("\t\t\t<IMG src=\"/images/Top/gamebook.gif\">\n");
      out.write("\t\t</TD>\n");
      out.write("\t\t<TD>\n");
      out.write("\t\t\t<IMG src=\"/images/Top/community.gif\">\n");
      out.write("\t\t</TD>\n");
      out.write("\t\t<TD>\n");
      out.write("\t\t\t<IMG src=\"/images/Top/event.gif\" style=\"cursor:hand\">\n");
      out.write("\t\t</TD>\r\n");
      out.write("  </TR>\n");
      out.write("  </FORM>\r\n");
      out.write("</TABLE>\n");
      out.write("\r\n");
      out.write(" \n");
      out.write(" <!-- 검색시작 -->\n");
      out.write("<table width=\"350\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n");
      out.write("\t<form name=\"TotalSearchForm\" method=\"get\" action=\"/servlet/service.TotalSearchServlet\">\n");
      out.write("\t<INPUT type=\"hidden\" name=\"func\" value=\"search_000\"/>\n");
      out.write("\t\t<tr>\n");
      out.write("\t\t\t<td align=\"right\"><img align=\"absmiddle\" src=\"/images/Top/20080919150629_main_top_search01.gif\"></td>\n");
      out.write("\t\t\t<td width='110' align=\"center\">\n");
      out.write("\t\t\t\t<select name=\"search\">\n");
      out.write("\t\t\t\t\t<option value=\"total\">통합검색</option>\n");
      out.write("\t\t\t\t\t<option value=\"price\">가격</option>\n");
      out.write("\t\t\t\t\t<option value=\"product\">상품명</option>\n");
      out.write("\t\t\t\t\t<option value=\"bbs\">게시판</option>\n");
      out.write("\t\t\t\t</select>\n");
      out.write("\t\t\t</td>\n");
      out.write("\t\t\t<td width='2'>&nbsp;</td>\n");
      out.write("\t\t\t<td><input type=\"text\" name=\"word\" size=\"28\"></td>\n");
      out.write("\t\t\t<td width='2'>&nbsp;</td>\n");
      out.write("\t\t\t<td width=32 align=\"right\"><img align=\"absmiddle\" src=\"/images/Top/20080919150437_main_top_search02.gif\" border=\"0\" onclick=\"totalSearch();\" style=\"cursor:pointer\"></td>\n");
      out.write("\t\t</tr>\n");
      out.write("\t</form>\n");
      out.write("</table>\n");
      out.write(" \n");
      out.write(" \n");
      out.write(" </BODY>\n");
      out.write(" \n");
      out.write(" \r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
